package com.steven.tool.soapTest;

import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.io.Resources;
import org.junit.Test;

import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;

public class SoapCeShi {



    @Test
    public void tongji (){
        try(
                InputStream resourceAsStream = Resources.getResourceAsStream("./tongji/湖北省平台.xml");
                InputStreamReader inputReader = new InputStreamReader(resourceAsStream);
                 BufferedReader bf = new BufferedReader(inputReader);
                ) {
            StringBuffer stringBuffer = new StringBuffer();
            String str;
            while ((str = bf.readLine()) != null) {
                if(StringUtils.isEmpty(str)){
                    continue;
                }
                stringBuffer.append(str);
            }
            String ssoResult = SoapUtil.getSsoResult(stringBuffer.toString());
        }catch (Exception e){
            e.printStackTrace();
        }
    }

}
